// tofw.C -- TOF Wall statistics
void a(vector<TH1 *> &v, TObject *h){ v.push_back((TH1 *)h); }
void tofw(){
  TFile *f = new TFile(getenv("TMP1"));
  TTree *etf = (TTree *)f->Get("etf");
  vector<TH1 *> v;
  TCanvas *c = new TCanvas("c", "Track Angle Distribution", 1680, 1050);
  c->Divide(2,2);
  c->cd(1); etf->Draw("tofwB_multi>>h1(17, -1.5, 15.5)");
  c->cd(2); etf->Draw("tofwB.stripId()>>h2(17, -1.5, 15.5)", "");
  c->cd(3); etf->Draw("tofwB.time()-tstop.time()+190.9:tofwB.stripId()>>h3(17, -1.5, 15.5, 500, 40., 80.)", "");
  c->cd(4); etf->Draw("tofwB.dt():tofwB.stripId()>>h3(17, -1.5, 15.5, 500, -20., 20.)", "");

  // c->Print("tofw.pdf");
} // end tofw
